package com.hancx.dto;

import com.hancx.entity.MenuInfo;

import java.awt.*;
import java.util.List;

public class MenuInfoDTO extends MenuInfo {

    public MenuInfoDTO() {
    }

    public MenuInfoDTO(MenuInfo menuInfo, List children) {
        this.setId(menuInfo.getId());
        this.setMenuName(menuInfo.getMenuName());
        this.setMenuIcon(menuInfo.getMenuIcon());
        this.setScript(menuInfo.getScript());
        this.setOrderNum(menuInfo.getOrderNum());
        this.setCreateBy(menuInfo.getCreateBy());
        this.setCreateTime(menuInfo.getCreateTime());
        this.setParent(menuInfo.getParent());

        this.children = children;
    }

    private List<MenuInfo> children;

    public List<MenuInfo> getChildren() {
        return children;
    }

    public void setChildren(List<MenuInfo> children) {
        this.children = children;
    }
}
